home *** CD-ROM | disk | FTP | other *** search
/ ftp.ac-grenoble.fr / 2015.02.ftp.ac-grenoble.fr.tar / ftp.ac-grenoble.fr / assistance.logicielle / NetTime-2b6.exe / {app} / RFC868.txt < prev    next >
Text File  |  2000-08-01  |  3KB  |  118 lines

  1. Network Working Group                                    J. Postel - ISI
  2. Request for Comments: 868                           K. Harrenstien - SRI
  3.                                                                 May 1983
  4.  
  5.  
  6.  
  7.                              Time Protocol
  8.  
  9.  
  10.  
  11.  
  12. This RFC specifies a standard for the ARPA Internet community.  Hosts on
  13. the ARPA Internet that choose to implement a Time Protocol are expected
  14. to adopt and implement this standard.
  15.  
  16. This protocol provides a site-independent, machine readable date and
  17. time.  The Time service sends back to the originating source the time in
  18. seconds since midnight on January first 1900.
  19.  
  20. One motivation arises from the fact that not all systems have a
  21. date/time clock, and all are subject to occasional human or machine
  22. error.  The use of time-servers makes it possible to quickly confirm or
  23. correct a system's idea of the time, by making a brief poll of several
  24. independent sites on the network.
  25.  
  26. This protocol may be used either above the Transmission Control Protocol
  27. (TCP) or above the User Datagram Protocol (UDP).
  28.  
  29. When used via TCP the time service works as follows:
  30.  
  31.    S: Listen on port 37 (45 octal).
  32.  
  33.    U: Connect to port 37.
  34.  
  35.    S: Send the time as a 32 bit binary number.
  36.  
  37.    U: Receive the time.
  38.  
  39.    U: Close the connection.
  40.  
  41.    S: Close the connection.
  42.  
  43.    The server listens for a connection on port 37.  When the connection
  44.    is established, the server returns a 32-bit time value and closes the
  45.    connection.  If the server is unable to determine the time at its
  46.    site, it should either refuse the connection or close it without
  47.    sending anything.
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55. Postel                                                          [Page 1]
  56.  
  57.  
  58.  
  59. RFC 868                                                         May 1983
  60. Time Protocol                                                           
  61.  
  62.  
  63. When used via UDP the time service works as follows:
  64.  
  65.    S: Listen on port 37 (45 octal).
  66.  
  67.    U: Send an empty datagram to port 37.
  68.  
  69.    S: Receive the empty datagram.
  70.  
  71.    S: Send a datagram containing the time as a 32 bit binary number.
  72.  
  73.    U: Receive the time datagram.
  74.  
  75.    The server listens for a datagram on port 37.  When a datagram
  76.    arrives, the server returns a datagram containing the 32-bit time
  77.    value.  If the server is unable to determine the time at its site, it
  78.    should discard the arriving datagram and make no reply.
  79.  
  80. The Time
  81.  
  82. The time is the number of seconds since 00:00 (midnight) 1 January 1900
  83. GMT, such that the time 1 is 12:00:01 am on 1 January 1900 GMT; this
  84. base will serve until the year 2036.
  85.  
  86. For example:
  87.  
  88.    the time  2,208,988,800 corresponds to 00:00  1 Jan 1970 GMT,
  89.  
  90.              2,398,291,200 corresponds to 00:00  1 Jan 1976 GMT,
  91.  
  92.              2,524,521,600 corresponds to 00:00  1 Jan 1980 GMT,
  93.  
  94.              2,629,584,000 corresponds to 00:00  1 May 1983 GMT,
  95.  
  96.         and -1,297,728,000 corresponds to 00:00 17 Nov 1858 GMT.
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113. Postel                                                          [Page 2]
  114.  
  115.  
  116.  
  117.  
  118.